@use './theme/config.scss' as config;

@mixin clearfix {
  &:after {
    content: '';
    display: table;
    clear: both;
  }
}

@mixin relative {
  position: relative;
  width: 100%;
  height: 100%;
}

@mixin pct($pct) {
  width: #{$pct};
  position: relative;
  margin: 0 auto;
}

@mixin triangle($width, $height, $color, $direction) {
  $width: $width/2;
  $color-border-style: $height solid $color;
  $transparent-border-style: $width solid transparent;
  height: 0;
  width: 0;

  @if $direction==up {
    border-bottom: $color-border-style;
    border-left: $transparent-border-style;
    border-right: $transparent-border-style;
  } @else if $direction==right {
    border-left: $color-border-style;
    border-top: $transparent-border-style;
    border-bottom: $transparent-border-style;
  } @else if $direction==down {
    border-top: $color-border-style;
    border-left: $transparent-border-style;
    border-right: $transparent-border-style;
  } @else if $direction==left {
    border-right: $color-border-style;
    border-top: $transparent-border-style;
    border-bottom: $transparent-border-style;
  }
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background-color: #ffffff;
}

::-webkit-scrollbar-thumb {
  @include config.useTheme {
    background-color: getVar("tableHeaderBgColor");
  }
  border-radius: 3px;
}

em {
  font-style: normal;
}

/* 防止图片闪一下 */
image {
  will-change: transform;
}

/* scroll-view */
.scroll-row {
  width: 100%;
  white-space: nowrap;
  line-height: 44px;
}

/* 定位 */
.position-initial {
  position: initial;
}

.overflow-hidden {
  overflow: hidden !important;
}

.scroll-row-item {
  display: inline-block !important;
}

.bg-white {
  background: #ffffff;
}

/* 定位 */
.position-initial {
  position: initial;
}

.position-absolute {
  position: absolute;
}

.position-fixed {
  position: fixed;
}

.position-relative {
  position: relative;
}

.left-0 {
  left: 0;
}

.top-0 {
  top: 0;
}

.bottom-0 {
  bottom: 0;
}

.right-0 {
  right: 0;
}

.right-30 {
  right: 30px;
  z-index: 1;
}

/* 宽高 */
.w-100 {
  width: 100%;
}

.w-10 {
  width: 10% !important;
}

/* 宽高 */
.w-80 {
  width: 80%;
}

.w-49 {
  width: 49% !important;
  text-align: center;
  line-height: 38px;
  font-size: 14.5px;
}

.w-38 {
  width: 38% !important;
  text-align: center;
  font-size: 0.81vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

.w-491 {
  width: 30% !important;
  text-align: center;
  line-height: 38px;
  font-size: 14.5px;
}

.w-50 {
  width: 50%;
}

.w-45 {
  width: 45% !important;
}

.w-60 {
  width: 60% !important;
}

.w-32 {
  width: 32% !important;
}

.w-20 {
  width: 20% !important;
}

.w-642 {
  width: 652px !important;
}

.w-47p {
  width: 47% !important;
}

.font-17 {
  font-size: 17px !important;
}

.w-90-px {
  width: 90px !important;
}

.w-14p {
  width: 14% !important;
}

.h-100 {
  height: 100% !important;
}

.h-30 {
  height: 30%;
}

.h-33 {
  height: 33.3%;
}

.h-33-1 {
  height: 30%;
}

.h-33-2 {
  height: 42%;
}

.h-33-3 {
  height: 28%;
}

.h-35 {
  height: 35%;
}

.h-20 {
  height: 20%;
}

.h-40 {
  height: 40%;
}

.h-50 {
  height: 50%;
}

.h-60 {
  height: 60%;
}

.mb-15 {
  margin-bottom: 15px !important;
}

.h-70p {
  height: 70% !important;
}

.h-70 {
  height: 66%;
}

.min-h-100 {
  min-height: 100%;
}

.h-200 {
  height: 200px;
}

.h-100P {
  height: 100px !important;
}

.h-220 {
  height: 220px !important;
}

.h-185 {
  height: 185px !important;
}

.h-250 {
  height: 250px !important;
}

.h-280 {
  height: 280px !important;
}

.h-300 {
  height: 300px !important;
}

.h-320 {
  height: 320px !important;
}

.h-350 {
  height: 350px;
}

.h-400 {
  height: 400px;
}

.h-450 {
  height: 450px;
}

.h-500 {
  height: 500px !important;
}

.h-600 {
  height: 600px !important;
}

.h-364 {
  height: 364px !important;
}

/* 字体 */
.fw-600 {
  font-weight: 600;
}

.fw-700 {
  font-weight: 700;
}

.font-size-sm {
  font-size: 0.625vw;
}

.font-size-md {
  font-size: 0.729vw;
}

.font-size-lg {
  font-size: 0.833vw;
}

.font-size-big {
  font-size: 0.937vw;
}

.line-h0 {
  line-height: 0 !important;
}

.line-h {
  line-height: 1 !important;
}

.line-h-sm {
  line-height: 1.2 !important;
}

.line-h-md {
  line-height: 1.5 !important;
}

.line-h-lg {
  line-height: 2 !important;
}

.line-h-big {
  line-height: 3 !important;
}

.line-through {
  text-decoration: line-through;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-bold {
  font-weight: bold;
}

.row {
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
}

.float-l {
  float: left;
}

.float-r {
  float: right;
}

.overflow-hidden {
  overflow: hidden !important;
}

.cursor-pointer {
  cursor: pointer;
}

/* flex布局 */
.d-flex {
  display: flex;
  flex-direction: row !important;
}

/* flex布局 */
.d-flex-reverse {
  display: flex;
  flex-direction: row-reverse !important;
}

.d-block {
  display: block;
}

.d-inline-block {
  display: inline-block;
}

.flex-1 {
  flex: 1;
}

.overflowHidden {
  overflow: hidden !important;
}

.overflowAuto {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.flex-column {
  flex-direction: column !important;
}

.flex-row {
  flex-direction: row;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

.flex-shrink {
  flex-shrink: 0;
}

.j-start {
  justify-content: flex-start;
}

.j-center {
  justify-content: center !important;
}

.j-end {
  justify-content: flex-end;
}

.j-sb {
  justify-content: space-between;
}

.j-around {
  justify-content: space-around;
}

.j-evenly {
  justify-content: space-evenly;
}

.a-center {
  align-items: center !important;
}

.a-start {
  align-items: flex-start;
}

.a-end {
  align-items: flex-end;
}

.a-stretch {
  align-items: stretch;
}

.a-self-start {
  align-self: flex-start;
}

.a-self-auto {
  align-self: auto;
}

.a-self-end {
  align-self: flex-end;
}

.a-self-stretch {
  align-self: stretch;
}

.a-self-baseline {
  align-self: baseline;
}

.m-0 {
  margin: 0;
}

.m {
  margin: 5px;
}

.m-1 {
  margin: 10px;
}

.m-2 {
  margin: 20px;
}

.m-3 {
  margin: 30px;
}

.m-4 {
  margin: 40px;
}

.m-5 {
  margin: 50px;
}

.mx-0 {
  margin-left: 0;
  margin-right: 0;
}

.mx {
  margin-left: 5px;
  margin-right: 5px;
}

.l-42 {
  left: 42% !important;
}

.mx-1 {
  margin-left: 10px;
  margin-right: 10px;
}

.mx-2 {
  margin-left: 20px;
  margin-right: 20px;
}

.mx-3 {
  margin-left: 30px;
  margin-right: 30px;
}

.mx-4 {
  margin-left: 40px;
  margin-right: 40px;
}

.mx-5 {
  margin-left: 50px;
  margin-right: 50px;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.my-0 {
  margin-top: 0;
  margin-bottom: 0;
}

.my {
  margin-top: 5px;
  margin-bottom: 5px;
}

.my-1 {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}

.my-2 {
  margin-top: 20px !important;
  margin-bottom: 20px !important;
}

.my-1_5 {
  margin-top: 15px !important;
  margin-bottom: 15px !important;
}

.my-3 {
  margin-top: 30px;
  margin-bottom: 30px;
}

.my-4 {
  margin-top: 40px;
  margin-bottom: 40px;
}

.my-5 {
  margin-top: 50px;
  margin-bottom: 50px;
}

.mt-0 {
  margin-top: 0;
}

.mt {
  margin-top: 5px;
}

.mt-auto {
  margin-top: auto;
}

.mt-1 {
  margin-top: 10px !important;
}

.mt-1_5 {
  margin-top: 15px !important;
}

.mt-2 {
  margin-top: 20px !important;
}

.mt-3 {
  margin-top: 30px;
}

.mt-4 {
  margin-top: 40px;
}

.mt-5 {
  margin-top: 50px;
}

.mb-0 {
  margin-bottom: 0;
}

.mb {
  margin-bottom: 5px;
}

.mb-auto {
  margin-bottom: auto;
}

.mb-1 {
  margin-bottom: 10px !important;
}

.mb-1_5 {
  margin-bottom: 15px !important;
}

.mb-2 {
  margin-bottom: 20px !important;
}

.mb-3 {
  margin-bottom: 30px !important;
}

.mb-4 {
  margin-bottom: 40px;
}

.mb-5 {
  margin-bottom: 50px;
}

.ml-0 {
  margin-left: 0;
}

.ml {
  margin-left: 5px;
}

.ml-auto {
  margin-left: auto;
}

.ml-1 {
  margin-left: 10px !important;
}

.ml-2 {
  margin-left: 20px !important;
}

.ml-3 {
  margin-left: 30px;
}

.ml-4 {
  margin-left: 40px;
}

.ml-5 {
  margin-left: 50px;
}

.mr-0 {
  margin-right: 0;
}

.mr {
  margin-right: 5px;
}

.mr-1 {
  margin-right: 10px !important;
}

.mr-2 {
  margin-right: 20px;
}

.mr-3 {
  margin-right: 30px;
}

.mr-4 {
  margin-right: 40px;
}

.mr-5 {
  margin-right: 50px;
}

.p-0 {
  padding: 0;
}

.p {
  padding: 5px;
}

.p-1 {
  padding: 10px !important;
}

.p-1_5 {
  padding: 15px !important;
}

.p-2 {
  padding: 20px !important;
}

.p-3 {
  padding: 30px;
}

.p-4 {
  padding: 40px;
}

.p-5 {
  padding: 50px;
}

.px-0 {
  padding-left: 0;
  padding-right: 0;
}

.px {
  padding-left: 5px;
  padding-right: 5px;
}

.px-1 {
  padding-left: 10px;
  padding-right: 10px;
}

.px-2 {
  padding-left: 20px;
  padding-right: 20px;
}

.px-3 {
  padding-left: 30px;
  padding-right: 30px;
}

.px-4 {
  padding-left: 40px;
  padding-right: 40px;
}

.px-5 {
  padding-left: 50px;
  padding-right: 50px;
}

.py-0 {
  padding-top: 0;
  padding-bottom: 0;
}

.py {
  padding-top: 5px;
  padding-bottom: 5px;
}

.py-1 {
  padding-top: 10px;
  padding-bottom: 10px;
}

.py-2 {
  padding-top: 20px;
  padding-bottom: 20px;
}

.py-3 {
  padding-top: 30px;
  padding-bottom: 30px;
}

.py-4 {
  padding-top: 40px;
  padding-bottom: 40px;
}

.py-5 {
  padding-top: 50px;
  padding-bottom: 50px;
}

.pt-0 {
  padding-top: 0 !important;
}

.pt {
  padding-top: 5px;
}

.pt-1 {
  padding-top: 10px;
}

.pt-2 {
  padding-top: 20px;
}

.pt-3 {
  padding-top: 30px;
}

.pt-4 {
  padding-top: 40px;
}

.pt-5 {
  padding-top: 50px;
}

.pb-0 {
  padding-bottom: 0;
}

.pb {
  padding-bottom: 5px;
}

.pb-1 {
  padding-bottom: 10px;
}

.pb-2 {
  padding-bottom: 20px;
}

.pb-3 {
  padding-bottom: 30px;
}

.pb-4 {
  padding-bottom: 40px;
}

.pb-5 {
  padding-bottom: 50px;
}

.pl-0 {
  padding-left: 0;
}

.pl {
  padding-left: 5px;
}

.pl-1 {
  padding-left: 10px;
}

.pl-2 {
  padding-left: 20px;
}

.pl-3 {
  padding-left: 30px;
}

.mr-5-m {
  margin-right: 5px !important;
}

.pl-38-m {
  padding-left: 38px !important;
}

.pl-4 {
  padding-left: 40px;
}

.pl-5 {
  padding-left: 50px;
}

.pr-0 {
  padding-right: 0;
}

.pr {
  padding-right: 5px;
}

.pr-1 {
  padding-right: 10px;
}

.pr-2 {
  padding-right: 20px;
}

.pr-3 {
  padding-right: 30px;
}

.pr-4 {
  padding-right: 40px;
}

.pr-5 {
  padding-right: 50px;
}

.gap {
  width: 100%;
  height: 20px;
  background: #eeeeee;
}

// 三类
.green-text {
  color: #00ff00;
}

.green {
  background-color: #00ff00;
  box-shadow: 0 0 0.313vw 0 rgba($color: #00ff00, $alpha: 0.8);
}

// 一类
.light-blue-text {
  color: #ccffff;
}

.light-blue {
  background-color: #ccffff;
  box-shadow: 0 0 0.313vw 0 rgba($color: #ccffff, $alpha: 0.8);
}

// 二类
.blue-text {
  color: #00ccff;
}

.blue {
  background-color: #00ccff;
  box-shadow: 0 0 0.313vw 0 rgba($color: #00ccff, $alpha: 0.8);
}

// 四类
.yellow-text {
  color: #ffff00;
}

.yellow {
  background-color: #ffff00;
  box-shadow: 0 0 0.313vw 0 rgba($color: #ffff00, $alpha: 0.8);
}

// 五类
.orange-text {
  color: #ff9b00;
}

.orange {
  background-color: #ff9b00;
  box-shadow: 0 0 0.313vw 0 rgba($color: #ff9b00, $alpha: 0.8);
}

// 劣五类
.light-red-text {
  color: #ff0000;
}

.light-red {
  background-color: #ff0000;
  box-shadow: 0 0 0.313vw 0 rgba($color: #ff0000, $alpha: 0.8);
}

.gary-text {
  color: #ababab;
}

.gary {
  background-color: #ababab;
  box-shadow: 0 0 0.313vw 0 rgba($color: #ababab, $alpha: 0.8);
}

.deep-gary-text {
  color: #999999;
}

.deep-gary {
  background-color: #999999;
  box-shadow: 0 0 0.313vw 0 rgba($color: #999999, $alpha: 0.8);
}

.red-text {
  color: #ff0000;
  font-weight: bold;
}

.red {
  background-color: #ff0000;
  box-shadow: 0 0 0.313vw 0 rgba($color: #ff0000, $alpha: 0.8);
}

.light-purple-text {
  color: #7a68d0;
}

.light-purple {
  background-color: #7a68d0;
  box-shadow: 0 0 0.313vw 0 rgba($color: #7a68d0, $alpha: 0.8);
}

.deep-purple-text {
  color: #9d4d7b;
}

.deep-purple {
  background-color: #9d4d7b;
  box-shadow: 0 0 0.313vw 0 rgba($color: #9d4d7b, $alpha: 0.8);
}

.tr-light-red {
  background-color: rgba($color: #ff9f22, $alpha: 0.4) !important;

  td {
    color: #ff9f22 !important;
  }
}

.tr-red {
  background-color: rgba($color: #ff623e, $alpha: 0.4) !important;

  td {
    color: #ff623e !important;
  }
}

.ccyjyaBox {
  border: 1px solid #00b7ff;
  color: white;
  font-size: 16px;
  margin-bottom: 20px;
}

.wh100 {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 5px rgba(27, 31, 35, 0.2) !important;
  border-radius: 5px;
}

.hy_tab {
  margin: 0 0 1vh 0;
  overflow: hidden;
  max-height: 20vh;
  position: relative;

  .huanhang {
    position: absolute;
    top: 0;
    left: 0;

    .el-table__empty-block {
      display: none;
    }
  }

  .scroll_table {
    max-height: 20vh;
  }

  .el-table {
    .el-table__body-wrapper {
      overflow-x: hidden;
      overflow-y: hidden;
    }
  }
}

.huanhang {
  .td {
    .cell {
      white-space: pre-wrap;
    }
  }
}
